<?php
require_once 'dbHandler.php';
$username = $_POST['username'];
$password = sha1($_POST['password']);
$db = dbHandler::getInstance();
$result = $db->query("SELECT userLvl FROM login WHERE userName='$username' AND userPass='$password'");
echo "SizeOf result: ".sizeof($result);
//if(sizeof($result)==1){
        
//}
//else {
    //login not correct
//}


?>
